package org.jeecg.modules.xxgx.fpjf.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.modules.xxgx.fpjf.entity.CsXxJfjl;
import org.jeecg.modules.xxgx.fpjf.param.FpjfSmsParam;
import org.jeecg.modules.xxgx.fpjf.param.FpjfYxParam;
import org.jeecg.modules.xxgx.fpjf.service.ICsXxJfjlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
* @Description: 销项发票交付记录
* @Author: jeecg-boot
* @Date:   2023-10-30
* @Version: V1.0
*/
@Api(tags="销项发票交付记录")
@RestController
@RequestMapping("/xxgx/fpjf/csXxJfjl")
@Slf4j
public class CsXxJfjlKzController extends JeecgController<CsXxJfjl, ICsXxJfjlService> {
   @Autowired
   private ICsXxJfjlService csXxJfjlService;


   /**
    *   重新发送邮箱交付信息
    *
    * @param fpjfYxParam
    * @return
    */
   @AutoLog(value = "销项发票交付记录-重新发送邮箱交付信息")
   @ApiOperation(value="销项发票交付记录-重新发送邮箱交付信息", notes="销项发票交付记录-重新发送邮箱交付信息")
   @PostMapping(value = "/resendyx")
   public Result<String> resendyx(@RequestBody FpjfYxParam fpjfYxParam) {
       return csXxJfjlService.yxjf(fpjfYxParam);
   }

    /**
     *   重新发送短信交付信息
     *
     * @param fpjfSmsParam
     * @return
     */
    @AutoLog(value = "销项发票交付记录-重新发送短信交付信息")
    @ApiOperation(value="销项发票交付记录-重新发送短信交付信息", notes="销项发票交付记录-重新发送短信交付信息")
    @PostMapping(value = "/resenddx")
    public Result<String> resenddx(@RequestBody FpjfSmsParam fpjfSmsParam) {
        return csXxJfjlService.dxjf(fpjfSmsParam);
    }

}
